import { cdnRequest } from '@/utils/HttpRequest';

export async function findByPrenterList() {
  //SwaggerResources

  return cdnRequest<API.BaseArrayDataResult<API.SysConfig>>(
    'sys/prenter/findByList',
    {
      method: 'GET',
    },
  );
}

export async function editPrenter(params: API.SysConfig) {
  return cdnRequest<API.BaseResult>('sys/prenter/edit', {
    method: 'POST',
    data: params,
  });
}

//refresh
export async function editRefresh() {
  return cdnRequest<API.BaseResult>('sys/prenter/refresh', {
    method: 'POST',
  });
}
